package com.epoint.mobileoa.tools.controls.list;

import android.widget.ListAdapter;
import android.widget.ListView;

import com.epoint.mobileoa.R;
import com.epoint.mobileoa.bizlogic.SuperView;

/**
 * @author liyc
 * @time 2012-8-29 下午4:44:17
 * @annotation 用户用listView展示的通用页面
 */
public class ListDisplayView extends SuperView {

	private ListView lv;
	public static ListAdapter adapter;
	@Override
	public void initControls() {
		String title = getIntent().getStringExtra("title");
		top_title.setText(title);
		lv = (ListView) findViewById(R.id.lv);
		
		lv.setAdapter(adapter);
	}

	@Override
	public void refresh(Object... param) {
		
	}

	@Override
	public int getLayoutInt() {
		return R.layout.listdisplayview;
	}
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
		adapter = null;
	}


	@Override
	public void refreshForNewTask(int TaskId,Object... param){
	}
}
